/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controlacciones.ejb3.business;

import controlacciones.ejb3.dao.ReporteDAOLocal;
import java.sql.SQLException;
import java.util.Map;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperPrint;

/**
 *
 * @author Vanessa
 */
@Stateless
public class ReporteBean implements ReporteLocal {
    
    public JasperPrint generarReporte( String reporte, Map parametros ) throws SQLException, JRException {
        return reporteDAOLocal.generarReporte(reporte, parametros);
    }

    @EJB
    ReporteDAOLocal reporteDAOLocal;
 
}
